#include<iostream>
using namespace std;
const int N = 1e5 + 10;
int arr[N];
int brr[N];
int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	brr[0] = 0;
	for (int i = 1; i < n; i++) {
		for (int j = 0; j < i; j++) {
			if (arr[i] > arr[j]) {
				brr[i]++;
			}
		}
	}
	for (int i = 0; i < n; i++) {
		cout << brr[i] << " ";
	}
	return 0;
}